package com.doge.bean.vo.cart;

import com.doge.bean.pojo.cart.Cart;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

/**
 * @program: project2-wechat-mall
 * @description: 购物车界面
 * @author: zhu lei
 * @create: 2021-12-02 11:30
 **/

@NoArgsConstructor
@Data
public class WxIndexVO {

    @JsonProperty("cartTotal")
    private CartTotalDTO cartTotal;
    @JsonProperty("cartList")
    private List<Cart> cartList;

    @NoArgsConstructor
    @Data
    public static class CartTotalDTO {
        @JsonProperty("goodsCount")
        private Integer goodsCount;
        @JsonProperty("checkedGoodsCount")
        private Integer checkedGoodsCount;
        @JsonProperty("goodsAmount")
        private BigDecimal goodsAmount;
        @JsonProperty("checkedGoodsAmount")
        private BigDecimal checkedGoodsAmount;
    }
}